home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / loader / initrd / initrd 32493 / etc / udev / rules.d / 64-device-mapper.rules < prev    next >
Text File  |  2006-11-29  |  709b  |  18 lines

  1. # device mapper links hook into "change" events, when the dm table
  2. # becomes available; some table-types must be ignored
  3.  
  4. KERNEL=="device-mapper", SYMLINK+="mapper/control"
  5.  
  6. KERNEL=="dm-*", ACTION=="add|change", GOTO="device_mapper_do"
  7. GOTO="device_mapper_end"
  8.  
  9. LABEL="device_mapper_do"
  10. PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
  11. RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"
  12.  
  13. IMPORT{program}="vol_id --export $tempnode"
  14. ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
  15. ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
  16.  
  17. LABEL="device_mapper_end"
  18.